package org.indt.scrum.model;
// default package
// Generated Jun 12, 2009 8:05:37 AM by Hibernate Tools 3.2.2.GA

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TbSelectedBacklog generated by hbm2java
 */
@Entity
@Table(name = "tb_selected_backlog", catalog = "scrumtool")
public class SelectedBacklog implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7537773159394841855L;
	
	@EmbeddedId
	@AttributeOverrides( {
			@AttributeOverride(name = "sprintId", column = @Column(name = "sprint_id", nullable = false)),
			@AttributeOverride(name = "storyId", column = @Column(name = "story_id", nullable = false)) })
	private SelectedBacklogId id;
	
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "sprint_id", nullable = false, insertable = false, updatable = false)
	private Sprint tbSprint;
	
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "story_id", nullable = false, insertable = false, updatable = false)
	private Productbacklog tbProductbacklog;
	
	@Column(name = "tb_sprint_backlog", nullable = false)
	private int tbSprintBacklog;
	
	@Column(name = "sequency", nullable = false)
	private int sequency;
	
	@Column(name = "result", length = 45)
	private String result;
	
	@Column(name = "done", length = 45)
	private String done;

	public SelectedBacklog() {
	}

	public SelectedBacklog(SelectedBacklogId id, Sprint tbSprint,
			Productbacklog tbProductbacklog, int tbSprintBacklog, int sequency) {
		this.id = id;
		this.tbSprint = tbSprint;
		this.tbProductbacklog = tbProductbacklog;
		this.tbSprintBacklog = tbSprintBacklog;
		this.sequency = sequency;
	}

	public SelectedBacklog(SelectedBacklogId id, Sprint tbSprint,
			Productbacklog tbProductbacklog, int tbSprintBacklog,
			int sequency, String result, String done) {
		this.id = id;
		this.tbSprint = tbSprint;
		this.tbProductbacklog = tbProductbacklog;
		this.tbSprintBacklog = tbSprintBacklog;
		this.sequency = sequency;
		this.result = result;
		this.done = done;
	}

	
	public SelectedBacklogId getId() {
		return this.id;
	}

	public void setId(SelectedBacklogId id) {
		this.id = id;
	}

	
	public Sprint getTbSprint() {
		return this.tbSprint;
	}

	public void setTbSprint(Sprint tbSprint) {
		this.tbSprint = tbSprint;
	}


	public Productbacklog getTbProductbacklog() {
		return this.tbProductbacklog;
	}

	public void setTbProductbacklog(Productbacklog tbProductbacklog) {
		this.tbProductbacklog = tbProductbacklog;
	}

	
	public int getTbSprintBacklog() {
		return this.tbSprintBacklog;
	}

	public void setTbSprintBacklog(int tbSprintBacklog) {
		this.tbSprintBacklog = tbSprintBacklog;
	}

	
	public int getSequency() {
		return this.sequency;
	}

	public void setSequency(int sequency) {
		this.sequency = sequency;
	}

	
	public String getResult() {
		return this.result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	
	public String getDone() {
		return this.done;
	}

	public void setDone(String done) {
		this.done = done;
	}

}
